<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="https://cdn.bootcss.com/qs/6.9.0/qs.js"></script>
</head>
<body>
    <script>
        axios.get('http://ldy520.cn/api/webapi/public/index/search',{
            params:{
                keyword:'北京'
            }
        }).then(res =>{
            console.log(res.data);
        })

        // const params = new URLSearchParams();
        // params.append('userName', 'test');
        // params.append('password', 'test');

        axios.post('http://ldy520.cn:8000/react-project-api/index.php/admin/logins',
            //  {params:JSON.stringify({userName:'test',password:'test' })}
            // Qs.stringify({userName:'test',password:'test' })

        ).then(res => {
            console.log(res.data);
        })
        
    </script>
</body>
</html>